package com.student.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.student.dao.ScoreStatisticsDao;
import com.student.model.Subjects;

@Component("ScoreStatisticsService")
public class ScoreStatisticsService {

	ScoreStatisticsDao scoreStatisticsDao;

	public ScoreStatisticsDao getScoreStatisticsDao() {
		return scoreStatisticsDao;
	}
	@Resource(name="ScoreStatisticsDao")
	public void setScoreStatisticsDao(ScoreStatisticsDao scoreStatisticsDao) {
		this.scoreStatisticsDao = scoreStatisticsDao;
	}
	public Map<String, Map<String, Integer>> getScoreStatisticsInfo  (
			Long collegeId, Long professionId, Integer clazz,Long subjectId) throws Exception{

		return scoreStatisticsDao.getScoreStatisticsInfo(collegeId, professionId, clazz,subjectId);
	}
	public List<Subjects> getAllSubject() throws Exception {
		
		return scoreStatisticsDao.getAllSubject();
	}
}
